<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>用户管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel='stylesheet' type='text/css' href='__PUBLIC__/css/admin-style.css' />
<script charset="utf-8" src="__PUBLIC__/jquery/1.11.3/jquery.min.js"></script>
<script charset="utf-8" src="__PUBLIC__/js/admin.js"></script>
</head>
<body class="body">
<form action="?s=Admin-Admin-Delall" method="post" name="myform" id="myform"> 
<table border="0" cellpadding="0" cellspacing="0" class="table">
<thead><tr><th class="r"><span style="float:left">用户管理</span></th></tr></thead>
  <tr>
    <td class="tr ct" style="height:40px">
    <input type="button" value="全部" class="submit" onClick="window.location='?s=Admin-User-Show';">
    <input type="button" value="已封禁" class="submit" onClick="window.location='?s=Admin-User-Show-status-0';return false;">
    <input type="button" value="已审核" class="submit" onClick="window.location='?s=Admin-User-Show-status-1';return false;">
    <input type="text" name="wd" id="wd" maxlength="20" value="{$wd|default='可搜索(用户呢称、邮箱)'|urldecode}" onClick="this.select();" style="color:#666;width:200px">
    <input type="button" value="搜索" class="submit" onClick="post('?s=Admin-User-Show');"></td>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="table">
  <thead>
    <tr class="ct">
      <th class="l">
			<span style="float:left"><span style="float:left;">ID<img class="sort" data-url="?{:http_build_query(array_merge($urls,array('order'=>'id')))}" data-order="id" data-sort="{$sort}" src="__PUBLIC__/images/admin/{$sort}.gif"></span> 邮箱（用户名）
			</th>
      <th class="l" width="80">影币 <img class="sort" data-url="?{:http_build_query(array_merge($urls,array('order'=>'score')))}" data-order="score" data-sort="{$sort}" src="__PUBLIC__/images/admin/{$sort}.gif"></th>
      <th class="l" width="80">关注度<img class="sort" data-url="?{:http_build_query(array_merge($urls,array('order'=>'follow')))}" data-order="follow" data-sort="{$sort}" src="__PUBLIC__/images/admin/{$sort}.gif"></th>
      <th class="l" width="120">上次登录时间<img class="sort" data-url="?{:http_build_query(array_merge($urls,array('order'=>'logtime')))}" data-order="logtime" data-sort="{$sort}" src="__PUBLIC__/images/admin/{$sort}.gif"></th>
      <th class="l" width="120">VIP到期时间<img class="sort" data-url="?{:http_build_query(array_merge($urls,array('order'=>'deadtime')))}" data-order="deadtime" data-sort="{$sort}" src="__PUBLIC__/images/admin/{$sort}.gif"></th>
      <th class="l" width="100">属性</th>
      <th class="r" width="100">操作</th>
    </tr>
  </thead>
  <volist name="list" id="feifei">
  <tbody>
  <tr>
    <td class="l pd">
		<label class="fl ids_check"><input name='ids[]' type='checkbox' value='{$feifei.user_id}' class="noborder"></label>
    <label class="fl ids_show">{$feifei.user_id}</label>
		<label class="fl">（{$feifei.user_name|htmlspecialchars}）</label>
		<label class="fl">{$feifei.user_email|htmlspecialchars}</label>
		</td>
    <td class="l ct">{$feifei.user_score}</td>
    <td class="l ct">{$feifei.user_follow}</td>
    <td class="l ct">{$feifei.user_logtime|date='Y.m.d H:i',###}</td>
    <td class="l ct">{$feifei.user_deadtime|date='Y.m.d H:i',###}</td>
    <td class="l ct">
    <a href="?s=Admin-Forum-Show-uid-{$feifei.user_id}" target="_blank">评论</a>
    <a href="?s=Admin-Orders-Show-uid-{$feifei.user_id}" target="_blank">订单</a>
    <a href="?s=Admin-Record-Show-uid-{$feifei.user_id}" target="_blank">日志</a>
    </td>
    <td class="r ct">
    <eq name="feifei.user_status" value="1">
    	<a href="?s=Admin-User-Status-ids-{$feifei.user_id}-value-0" title="点击隐藏用户">封禁</a>
    <else />
    	<a href="?s=Admin-User-Status-ids-{$feifei.user_id}-value-1" title="点击显示用户"><font color="red">解封</font></a>
    </eq>
    <a href="?s=Admin-User-Add-id-{$feifei.user_id}">编辑</a>
    <a href="?s=Admin-User-Del-ids-{$feifei.user_id}" onClick="return confirm('确定删除?')">删除</a>
    </td>
  </tr>
  </tbody>
  </volist>
   <tr>
      <td colspan="8" class="r pages">{$pages}</td>
    </tr> 
  <tfoot>
    <tr>
      <td colspan="8" class="r">
      <input type="button" value="全选" class="submit" onClick="checkall('all');">
      <input type="button" value="反选" class="submit" onClick="checkall();">
      <input type="button" value="解封" class="submit" onClick="post('?s=Admin-User-Status-value-1');">
      <input type="button" value="封禁" class="submit" onClick="post('?s=Admin-User-Status-value-0');">
      <input type="button" value="删除" class="submit" onClick="post('?s=Admin-User-Delall');">
      <input type="button" value="添加" class="submit" onClick="window.location='?s=Admin-User-add';"></td>
    </tr>  
  </tfoot>
</table>
</form>
<include file="./Public/system/footer.html" />
<script type="text/javascript">
$feifeicms.show.table();
$feifeicms.show.sort("{$order}");
</script>
</body>
</html>